import java.util.*;

public class Main9 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int sum = 0;
        String line = sc.nextLine();
        String lines[] = line.split(" ");

        for(String s:lines){
            try{
                int num = Integer.parseInt(s);
                sum+=num;
            }catch(NumberFormatException ex){
            }
        }

        System.out.println(sum);
        sc.close();
    }
}
